package com.ikun.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ikun.entity.PropertyPayments;
import com.ikun.service.PropertyPaymentsService;
import com.ikun.util.Result;

/**
 * @ClassName: PropertyPaymentsController
 * @Author: 吴思伟
 * @CreateTime: 2025-04-06 00:21
 * @Description: TODO
 */
@Controller
@RequestMapping("/propertyPayments")
public class PropertyPaymentsController {

    @Autowired
    private PropertyPaymentsService propertyPaymentsService;

    @PostMapping("/add")
    @ResponseBody
    public Result addPropertyPayments(@RequestBody PropertyPayments propertyPayments) {
        return Result.success(propertyPaymentsService.addPropertyPayments(propertyPayments));
    }
}
